package {
	import flash.display.*;
	import flash.text.*;
	
	/**
	 * 单个字 
	 * @author Administrator
	 * 
	 */	
	public final class KmcWord extends TextField {
		
		private var _tx:int = 0; // 偏移量
		public var tw:int;  //字的宽度
		
		public function KmcWord(str:String, format:TextFormat):void {
			autoSize = TextFieldAutoSize.LEFT;
			multiline = false;
			selectable = false;
			//border = true;
			//borderColor = 0xffffff;
			text = String(str);
			setTextFormat(format);
			tw = textWidth;
		}
		
		public function set tx(v:Number):void {
			_tx = v;
			x = v;
		}
		public function get tx():Number {
			return _tx;
		}
		
	}
}